package max.ta.data.plot;

import max.ta.data.Function;
import max.ta.data.plot.gen.DataGenerator;
import max.ta.data.plot.gen.RealDataGenerator;

public class MathFunctionPlotterTest {

    private static final Function<Double, Double> FUNCTION = new Function<Double, Double>() {

	@Override
	public Double compute(Double x) {
	    return 10 * Math.exp(x / 5.0);
	}
    };

    public static void main(final String[] args) {
	final double minX = -1;
	final double maxX = 20;
	final DataGenerator<Double, Double> generator = new RealDataGenerator(FUNCTION, minX, maxX);
	final LineChartPlotter demo = new LineChartPlotter("Test");
	demo.plot("Exponential", generator.generate());
    }


}
